#!/bin/sh

echo "===================Stop Ai-Lab Service======================"
pid_file='gunicorn.pid'

if [ -f "$pid_file" ]; then
  pid=$(cat "$pid_file")
  kill -s TERN "$pid"
  echo "Ai-Lab Service Stop"
else
  echo "Cannot Find $pid_file File,May By Ai-Lab Service Not Yet Start"
fi
echo "================Stop Ai-Lab Service Finish=================="